package com.framework.ACore;

import com.framerock.baselib.Rock;

import java.util.Map;

public class ModuleCourse {

    private String name = "",num = "",recename = "",receid = "",checktype = "",checkname = "",checknameid = "",explain = "";

    private int status=1,sort=0,cid=0,fmodeid=0,id=0;

    /**
     * 设置步骤名称
     * */
    public ModuleCourse setName(String name) {
        this.name = name;
        return this;
    }

    /**
     * 设置编号
     * */
    public ModuleCourse setNum(String num) {
        this.num = num;
        return this;
    }

    /**
     * 设置适用对象
     * */
    public ModuleCourse setRecename(String recename, String receid) {
        this.recename = recename;
        this.receid = receid;
        return this;
    }

    /**
     * 设置审核人类型
     * */
    public ModuleCourse setChecktype(String checktype) {
        this.checktype = checktype;
        return this;
    }

    /**
     * 设置审核人
     * */
    public ModuleCourse setCheckname(String checkname, String checknameid) {
        this.checkname = checkname;
        this.checknameid = checknameid;
        return this;
    }

    /**
     * 设置说明
     * */
    public ModuleCourse setExplain(String explain) {
        this.explain = explain;
        return this;
    }

    /**
     * 设置排序号
     * */
    public ModuleCourse setSort(int sort) {
        this.sort = sort;
        return this;
    }

    /**
     * 设置单位id
     * */
    public ModuleCourse setCid(int cid) {
        this.cid = cid;
        return this;
    }

    /**
     * 设置单位模块id
     * */
    public ModuleCourse setFmodeid(int fmodeid) {
        this.fmodeid = fmodeid;
        return this;
    }

    /**
     * 设置状态
     * */
    public ModuleCourse setStatus(int status) {
        this.status = status;
        return this;
    }

    /**
     * 步骤id
     * */
    public ModuleCourse setId(int id) {
        this.id = id;
        return this;
    }

    /**
     * 获取模块信息
     * */
    public Map<String, String> getMap()
    {
        Map<String, String> da = Rock.getMap();
        da.put("id", this.id+"");
        da.put("name", this.name);
        da.put("num", this.num);
        da.put("recename", this.recename);
        da.put("receid", this.receid);
        da.put("checktype", this.checktype);
        da.put("checkname", this.checkname);
        da.put("checknameid", this.checknameid);
        da.put("explain", this.explain);
        da.put("status", this.status+"");
        da.put("sort", this.sort+"");
        da.put("cid", this.cid+"");
        da.put("fmodeid", this.fmodeid+"");
        return da;
    }
}
